/*
 * sider-menu style
 */
 .sidebar {
  position: fixed;
  background: #fff;
  box-shadow: 0 0 10px rgba(51, 51, 51, 0.38);
  top: 70px;
  height: calc(~"100% - 70px");
  -webkit-transform: translate3d(-268px, 0, 0);
  transform: translate3d(-268px, 0, 0);
  z-index: 5;
  width: 268px;
  overflow: hidden;
  opacity: 0;
  filter: alpha(opacity=0);
  -webkit-transition: all;
  -o-transition: all;
  transition: all;
  -webkit-transition-duration: 300ms;
  transition-duration: 300ms;
  .sidebar-inner {
    height: 100%;
    overflow-y: auto;
    width: 268px;
  }
  &.toggled {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    opacity: 1;
    filter: alpha(opacity=100);
  }
}

.profile-menu {
  > a {
    display: block;
    height: 129px;
    margin-bottom: 5px;
    width: 100%;
    background: url(../../static/images/profile-menu.png) no-repeat left top;
    background-size: 100%;
    .profile-pic {
      padding: 12px;
      > img {
        width: 47px;
        height: 47px;
        border-radius: 50%;
        border: 3px solid rgba(0, 0, 0, 0.14);
        box-sizing: content-box;
      }
    }
    .profile-info {
      background: rgba(0, 0, 0, 0.37);
      padding: 7px 14px;
      color: #fff;
      margin-top: 20px;
      position: relative;
      > i {
        font-size: 12px;
        line-height: 100%;
        position: absolute;
        right: 15px;
        top: 10px;
        -webkit-transition: all;
        -o-transition: all;
        transition: all;
        -webkit-transition-duration: 300ms;
        transition-duration: 300ms;
      }
    }
  }
  .main-menu {
    display: block;
    margin: 0 0 0;
    border-bottom: 1px solid #E6E6E6;
  }
  &:before {
    content: " ";
    display: table;
  }
  &:after {
    content: " ";
    display: table;
    clear: both;
  }
  &.toggled .profile-info > i {
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -o-transform: rotate(180deg);
    transform: rotate(180deg);
  }
}

.main-menu {
  list-style: none;
  padding-left: 0;
  margin: 20px 0 0 0;
  > li {
    > a {
      padding: 14px 20px 14px 52px;
      display: block;
      color: #4C4C4C;
      font-weight: 500;
      position: relative;
      font-size: 12px;
      cursor: pointer;
      &:hover {
        color: #262626;
        background-color: #f7f7f7;
      }
      > i {
        position: absolute;
        left: 16px;
        font-size: 12px;
        top: 0;
        width: 25px;
        text-align: center;
        padding: 13px 0;
      }
    }
    &.active > a {
      color: #262626;
      background-color: #F4F4F4;
    }
  }
}

.sub-menu {
  > a {
    position: relative;
    &:before, &:after {
      position: absolute;
      top: 12px;
      color: #575757;
      font-family: 'Material-Design-Iconic-Font';
      font-size: 17px;
      right: 15px;
      -webkit-transition: all;
      -o-transition: all;
      transition: all;
      -webkit-transition-duration: 250ms;
      transition-duration: 250ms;
      -webkit-backface-visibility: hidden;
      -moz-backface-visibility: hidden;
      backface-visibility: hidden;
    }
    &:before {
      content: "+";
      -webkit-transform: scale(1);
      -ms-transform: scale(1);
      -o-transform: scale(1);
      transform: scale(1);
    }
    &:after {
      content: "-";
      -webkit-transform: scale(0);
      -ms-transform: scale(0);
      -o-transform: scale(0);
      transform: scale(0);
    }
  }
  .sub-menu > a {
    &:before, &:after {
      top: 5px;
    }
  }
  &.toggled > a {
    &:before {
      content: "+";
      -webkit-transform: scale(0);
      -ms-transform: scale(0);
      -o-transform: scale(0);
      transform: scale(0);
    }
    &:after {
      content: "-";
      -webkit-transform: scale(1);
      -ms-transform: scale(1);
      -o-transform: scale(1);
      transform: scale(1);
    }
  }
  ul {
    list-style: none;
    display: block;
    padding: 0;
    > li {
      > a {
        color: #333;
        padding: 8px 20px 8px 50px;
        font-size: 12px;
        display: block;
        &.active, &:hover {
          color: #000;
        }
      }
      &:first-child > a {
        padding-top: 14px;
      }
      &:last-child > a {
        padding-bottom: 16px;
      }
      ul {
        font-size: 12px;
        margin: 10px 0;
        background-color: #F7F7F7;
      }
    }
  }
}